body {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 20px;
  }
  
  h1 {
    text-align: center;
    color: #333;
  }
  
  .input-group {
    margin-bottom: 10px;
  }
  
  #username {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  #messages {
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    height: 300px;
    overflow-y: scroll;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }
  
  .message {
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  .username {
    font-weight: bold;
    color: #007bff;
    margin-right: 6px;
  }
  
  .timestamp {
    font-size: 0.8em;
    color: #999;
    margin-left: 8px;
  }
  
  #input-area {
    margin-top: 10px;
    display: flex;
    gap: 10px;
  }
  
  #input {
    flex: 1;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  #sendBtn {
    padding: 8px 16px;
    font-size: 1em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  #sendBtn:hover {
    background-color: #0056b3;
  }
  